home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch18 / 18fig23b.wrl < prev    next >
Text File  |  1996-09-23  |  619b  |  34 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.         texture ImageTexture {
  9.             url "grill.png"
  10.         }
  11.         textureTransform TextureTransform {
  12.             scale 32.0 8.0
  13.             center 0.5 0.5
  14.         }
  15.     }
  16.     geometry IndexedFaceSet {
  17.         solid FALSE
  18.         coord Coordinate {
  19.             point [
  20.                 -4.0 -1.0 0.1,   4.0 -1.0 0.1,
  21.                  4.0  1.0 0.1,  -4.0  1.0 0.1,
  22.             ]
  23.         }
  24.         coordIndex [ 0, 1, 2, 3 ]
  25.         texCoord TextureCoordinate {
  26.             point [
  27.                 0.0 0.0,  1.0 0.0,
  28.                 1.0 1.0,  0.0 1.0,
  29.             ]
  30.         }
  31.         texCoordIndex [ 0, 1, 2, 3 ]
  32.     }
  33. }
  34.